<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Bai 1.4</title>
</head>

<body>
<?php
	if(isset($_FILES["browseFile"]["name"]))
	{		
		if($_FILES["browseFile"]["error"]>0)
		{
			$kq="File bạn chọn bị lỗi: ".$_FILES['browseFile']['error'];
		}
		else
		{
			$kq="Tên file: ".$_FILES['browseFile']['name']."<br />";
			$kq.="Loại file: ".$_FILES['browseFile']['type']."<br />";
			$kq.="Kích thước: ".$_FILES['browseFile']['size'];
		}
	}
?>
<form action="Bai1_4.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
  <table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr bgcolor="#FF3333" style="text-align: center; font-weight: bold; font-style: italic; color: #FFF; font-size: 24px;">
      <td>THUỘC TÍNH CỦA TẬP TIN</td>
    </tr>
    <tr>
      <td bgcolor="#FFCCFF" style="text-align: center; color: #F03; font-weight: bold;">Tập tin: 
      
      <input name="browseFile" type="file" id="browseFile" size="50%" /></td>
    </tr>
    <tr>
      <td bgcolor="#FFCCFF" style="text-align: center"><input type="submit" name="button" id="button" value="Thuộc tính của tập tin" /></td>
    </tr>
    <tr>
      <td bgcolor="#FFCCFF" style="text-align: center; color: #F03; font-weight: bold;"><label><?php echo $kq;?></label>&nbsp;</td>
    </tr>
  </table>
</form>
</body>
</html>